<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head>
    <meta charset="utf-8"/>
    <title>题目详情</title>
</head>
<link rel="stylesheet" href="/bootstrap-3.3.4/dist/css/bootstrap.min.css">
<style>

</style>
<body>
<div class="form-content radio-box-exam">
    <h1 class="form-header">
        <span th:if="${question.type == '1'}">单选题目</span>
        <span th:if="${question.type == '2'}">多选题</span>
        <span th:if="${question.type == '3'}">填空题</span>
        <span th:if="${question.type == '4'}">判断题</span>
        <span th:if="${question.type == '5'}">问答题</span>
    </h1>
        <div class="form-group">
            <label class="control-label">[[${question.title}]]</label>
            <div class="col-sm-12" th:if="${question.type == '1' || question.type == '2'}">
                    <label class="radio-box">
                        <input class="" type="radio"  value="A"
                               disabled
                        >[[${question.optionA}]]

                    </label>
                    <br>
                    <label class="radio-box">
                        <input class="" type="radio"  value="B"
                               disabled
                        > [[${question.optionB}]]
                    </label>
                    <br>
                    <label class="radio-box">
                        <input class="" type="radio"  value="C"
                               disabled
                        > [[${question.optionC}]]
                    </label>
                    <br>
                    <label class="radio-box">
                        <input class="" type="radio"  value="D"
                               disabled
                        >[[${question.optionD}]]
                    </label>
                    <br>
                </div>

            <div class="text-warning" th:switch="${question.type}">
                正确答案：
                <p th:case="4">[[${question.answer=='0'?"错误":"正确"}]]</p>
                <p th:case="*">[[${question.answer}]]</p>
            </div>
            <div class="text-danger" th:if="${question.analyse != null}">解析：[[${question.analyse}]]</div>
        </div>
        <br>
</div>




<script src="/js/jquery-3.4.1.min.js"></script>
<script src="/js/common.js"></script>
<script>

</script>
</body>
</html>